package com.lambda.demo2.anonymity;

/**
 * @ClassName Test
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/1 11:37
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println("好好学习,天天向上");
                }
            }
        };

        // 开启线程
        new Thread(runnable).start();
    }
}
